import request from '@/utils/request'

// 查询记事列表
export function listNotebook(query) {
  return request({
    url: '/ora/notebook/list',
    method: 'get',
    params: query
  })
}

// 查询记事详细
export function getNotebook(id) {
  return request({
    url: '/ora/notebook/' + id,
    method: 'get'
  })
}

// 新增记事
export function addNotebook(data) {
  return request({
    url: '/ora/notebook',
    method: 'post',
    data: data
  })
}

// 修改记事
export function updateNotebook(data) {
  return request({
    url: '/ora/notebook',
    method: 'put',
    data: data
  })
}

// 删除记事
export function delNotebook(id) {
  return request({
    url: '/ora/notebook/' + id,
    method: 'delete'
  })
}
